package com.java.demo.Controller;

import com.java.demo.Model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController2 {
    @Autowired
    private User user;

    public void doMethod(){
        System.out.println("UserController2 ：User -> " + user);
    }
}
